Book Contents

Bitwise inclusive OR ( | )

Returns an integer with a bit set to 1 if either or both of the corresponding bits in the original numbers are 1. If both bits are 0, the resulting bit is 0.

See also

Quick reference to operators